package com.atguigu.yygh.hosp.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.util.Date;

/**
 * @author mgx
 * @version 1.0
 * @description: TODO
 * @date 2022/8/24 22:37
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@Document(value = "Actor") // 指定mongodb对应的集合名
public class Actor {
    // @Id
    private String id;
    // @Field(value = "actor_name")
    private String actorName;
    private boolean gender;
    private Date birth;
}
